package com.atguigu.java.ai.langchain4j;

import com.atguigu.java.ai.langchain4j.assistant.SeparateChatAssistant;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

//@SpringBootTest
public class Prompt {
    @Autowired
    private SeparateChatAssistant separateChatAssistant;

    @Test
    public void test() {
        String chat = separateChatAssistant.chat(4, "1");
        System.out.println(chat);
    }

    @Test
    public void testUserInfo() {

        String answer = separateChatAssistant.chat3(20, "我是谁，我多大了", "翠花", 18);
        System.out.println(answer);
    }
}
